package com.fpt.edu.vn.h2tv.dao.entity;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * TbShippingMethod entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "tb_shipping_method", catalog = "bookdb")
public class TbShippingMethod implements java.io.Serializable {

	// Fields

	private Short shippingmethodid;
	private String shippingmethod;

	// Constructors

	/** default constructor */
	public TbShippingMethod() {
	}

	/** full constructor */
	public TbShippingMethod(Short shippingmethodid, String shippingmethod) {
		this.shippingmethodid = shippingmethodid;
		this.shippingmethod = shippingmethod;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "SHIPPINGMETHODID", unique = true, nullable = false)
	public Short getShippingmethodid() {
		return this.shippingmethodid;
	}

	public void setShippingmethodid(Short shippingmethodid) {
		this.shippingmethodid = shippingmethodid;
	}

	@Column(name = "SHIPPINGMETHOD", nullable = false)
	public String getShippingmethod() {
		return this.shippingmethod;
	}

	public void setShippingmethod(String shippingmethod) {
		this.shippingmethod = shippingmethod;
	}

}